import {SETBANNERLIST,SETPLAYLIST} from '../types'
export interface IFindState {
  bannerList:[],
  playList:[]
}

let initState:IFindState = {
  bannerList:[],
  playList:[]
}
export const findReducer = (state:IFindState = initState,action:any)=>{
  switch (action.type) {
    case SETBANNERLIST:
      return {
        ...state,
        bannerList:action.bannerList
      }
    case SETPLAYLIST:
      return {
        ...state,
        playList:action.playList
      }  
    default:
      return {
        ...state
      }
  }
}